<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox-content">
                <div class="row">
                    <form action="<?=url('admin.admin/create')?>"  id="form-create" method="post" class="form-horizontal" role="form"> 

                        <div class="form-group">
                            <label class="col-sm-3 control-label no-padding-right"><span class="c-red">*</span>用户名：</label>
                            <div class="col-sm-9">
                                <input type="text"  value="<?=isset($detail->username)?$detail->username:''?>" placeholder="" id="username" name="username"  class=" form-control" /> 
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label no-padding-right">密码：</label>
                            <div class="col-sm-9">
                                <input type="text"  value="<?=isset($detail->password)?$detail->password:''?>" placeholder="" id="password" name="password"  class=" form-control" /> 
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label no-padding-right"><span class="c-red">*</span>角色：</label>
                            <div class="col-sm-9">
                                <select class="form-control" name="role_id" id="role_id"> 
                                    <option value="0">请选择</option>
                                    <?php foreach($roles as $val) {?>
                                    <option value="<?=$val['role_id']?>"><?=$val['role_name']?></option>
                                    <?php }?>
                                </select>

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label no-padding-right"><span class="c-red">*</span>真实姓名：</label>
                            <div class="col-sm-9">
                                <input type="text"  value="<?=isset($detail->real_name)?$detail->real_name:''?>" placeholder="" id="real_name" name="real_name"  class=" form-control" /> 
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label no-padding-right"><span class="c-red">*</span>手机号码：</label>
                            <div class="col-sm-9">
                                <input type="text"  value="<?=isset($detail->mobile)?$detail->mobile:''?>" placeholder="" id="mobile" name="mobile"  class=" form-control" /> 
                            </div>
                        </div>
                        <div class="clearfix form-actions">
                            <div class="col-md-offset-3 col-md-9">
                                <button mini="submit" for="form-create" class="btn btn-info" type="button">
                                    <i class="ace-icon fa fa-check bigger-110"></i>
                                    保存
                                </button>


                            </div>
                        </div>
                    </form>
                </div></div>
        </div>
    </div>
</div>